#!/usr/bin/python
from os.path import walk, join, normpath
import sys
import os.path
from os import getcwd

def visit(arg, dirname, names):
    files=[normpath(join(dirname, file)) for file in names]
    for i in files:
        if os.path.isdir(i):
            print i

if __name__=="__main__":
    path = '/home/larry/workspace/cv2/webroot/public'
    walk(path, visit, 0)
